package edu.jmu.dao;

import org.springframework.stereotype.Repository;

@Repository("userDao")//用@Bean也可以
public class UserDaoImpl implements UserDao {

	@Override
	public void save() throws RuntimeException {
		System.out.println("save用户");
		
			throw new RuntimeException("我自己抛出的异常");
		

	}

	@Override
	public void update() {
		System.out.println("update用户");
		
	}

	@Override
	public void delete() {
		System.out.println("delete用户");
		
	}

	@Override
	public void find() {
		System.out.println("find用户");
		
	}

}
